package com.ss.android.download;

import android.os.Build;
import android.os.Environment;
import android.text.TextUtils;
import android.util.Log;

public final class aa {
    public static final String a;
    public static final String b;
    public static final boolean c;
    public static final boolean d;

    static {
        int v1 = 1;
        a = "/" + Environment.DIRECTORY_DOWNLOADS;
        StringBuilder v4 = new StringBuilder();
        int v0 = !TextUtils.isEmpty(Build.VERSION.RELEASE) ? 1 : 0;
        int v3 = !TextUtils.isEmpty(Build.ID) ? 1 : 0;
        if (!"REL".equals(Build.VERSION.CODENAME) || (TextUtils.isEmpty(Build.MODEL))) {
            v1 = 0;
        }

        v4.append("SsAndroidDownloadManager");
        if (v0 != 0) {
            v4.append("/").append(Build.VERSION.RELEASE);
        }

        v4.append(" (Linux; U; Android");
        if (v0 != 0) {
            v4.append(" ").append(Build.VERSION.RELEASE);
        }

        if (v1 != 0 || v3 != 0) {
            v4.append(";");
            if (v1 != 0) {
                v4.append(" ").append(Build.MODEL);
            }

            if (v3 == 0) {
//                goto label_54;
            } else {
                v4.append(" Build/").append(Build.ID);
            }
        }

//        label_54:
        v4.append(")");
        b = v4.toString();
        boolean v0_1 = Log.isLoggable("SsDownloadManager", 2);
        c = v0_1;
        d = v0_1;
    }
}

